﻿<%@ Page Language="C#" Inherits="E.Web.Teacher.info.SafetyInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>安全信息</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/info.css" type="text/css" media="all" />
  <script type="text/javascript">
    function ChkForm() {
      if (document.getElementById("QuestionSlt").value != "-1" && document.getElementById("AnswerTxt").value != "") {
        return true;
      } else {
        alert("请正确填写信息");
        return false;
      }
    }
  </script>
</head>
<body>
<form id="form1" method="post" action="">
  <div class="m_top"></div>
  <div class="block">
    <div style="width:650px; height:22px;">
      <div class="title">&nbsp;安全信息</div>
    </div>
    <div class="spe_line_1"></div>
    <div style="margin-top:10px; width:650px; display:table;">
      <div class="fl" style="width:120px; line-height:20px; _line-height:23px;">忘记密码提示问题：</div>
      <div class="fl">
      <% if (questionList != null && questionList.Count > 0) { %>
        <select id="QuestionSlt" name="QuestionSlt">
          <option value="-1">请选择</option>
         <% foreach (System.Collections.Generic.KeyValuePair<int, string> kvp in questionList) { %>
          <option value="<%=kvp.Key %>"><%=kvp.Value %></option>
         <% } %>
        </select>
      <% } %>
      </div>
    </div>
    <div style="margin-top:10px; width:650px; display:table;">
      <div class="fl" style="width:120px; line-height:20px; _line-height:23px;">提示问题答案：</div>
      <div class="fl"><input type="text" id="AnswerTxt" name="AnswerTxt" value="<%=qm.Answer %>" /></div>
    </div>
    <div style="margin:10px 0 0 120px;">
      <input type="image" src="/images/btn/confirm.gif" style="width:52px; height:22px;" onclick="return ChkForm();" />
    </div>
  </div>
  <script type="text/javascript">
    document.getElementById("QuestionSlt").value = '<%=qm.ID %>';
  </script>
</form>
</body>
</html>